<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: pico_divider</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.1.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('group__pico__divider.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#files">Files</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">pico_divider<div class="ingroups"><a class="el" href="group__runtime.html">Runtime Infrastructure</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Optimized 32 and 64 bit division functions accelerated by the RP2040 hardware divider.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="files" name="files"></a>
Files</h2></td></tr>
<tr class="memitem:common_2pico__divider__headers_2include_2pico_2divider_8h"><td class="memItemLeft" align="right" valign="top">file &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="common_2pico__divider__headers_2include_2pico_2divider_8h.html">divider.h</a></td></tr>
<tr class="memdesc:common_2pico__divider__headers_2include_2pico_2divider_8h"><td class="mdescLeft">&#160;</td><td class="mdescRight">High level APIs including combined quotient and remainder functions for 32 and 64 bit accelerated by the hardware divider. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga60b86237e096a13f871015a28dceb88a"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga60b86237e096a13f871015a28dceb88a">div_s32s32</a> (int32_t a, int32_t b)</td></tr>
<tr class="memdesc:ga60b86237e096a13f871015a28dceb88a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two signed 32-bit values.  <a href="group__pico__divider.html#ga60b86237e096a13f871015a28dceb88a">More...</a><br /></td></tr>
<tr class="separator:ga60b86237e096a13f871015a28dceb88a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaae6ff276cc2275c0734600b981a5d677"><td class="memItemLeft" align="right" valign="top">static int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#gaae6ff276cc2275c0734600b981a5d677">divmod_s32s32_rem</a> (int32_t a, int32_t b, int32_t *rem)</td></tr>
<tr class="memdesc:gaae6ff276cc2275c0734600b981a5d677"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two signed 32-bit values, with remainder.  <a href="group__pico__divider.html#gaae6ff276cc2275c0734600b981a5d677">More...</a><br /></td></tr>
<tr class="separator:gaae6ff276cc2275c0734600b981a5d677"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gace9d9d5ff4290c52bc4d5e07f6f7e15a"><td class="memItemLeft" align="right" valign="top">divmod_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#gace9d9d5ff4290c52bc4d5e07f6f7e15a">divmod_s32s32</a> (int32_t a, int32_t b)</td></tr>
<tr class="memdesc:gace9d9d5ff4290c52bc4d5e07f6f7e15a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two signed 32-bit values.  <a href="group__pico__divider.html#gace9d9d5ff4290c52bc4d5e07f6f7e15a">More...</a><br /></td></tr>
<tr class="separator:gace9d9d5ff4290c52bc4d5e07f6f7e15a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9f9526e8653805bf2fe737afd4e490da"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga9f9526e8653805bf2fe737afd4e490da">div_u32u32</a> (uint32_t a, uint32_t b)</td></tr>
<tr class="memdesc:ga9f9526e8653805bf2fe737afd4e490da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two unsigned 32-bit values.  <a href="group__pico__divider.html#ga9f9526e8653805bf2fe737afd4e490da">More...</a><br /></td></tr>
<tr class="separator:ga9f9526e8653805bf2fe737afd4e490da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga02bac0aea2fa383a28bd05bcd682a07a"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga02bac0aea2fa383a28bd05bcd682a07a">divmod_u32u32_rem</a> (uint32_t a, uint32_t b, uint32_t *rem)</td></tr>
<tr class="memdesc:ga02bac0aea2fa383a28bd05bcd682a07a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two unsigned 32-bit values, with remainder.  <a href="group__pico__divider.html#ga02bac0aea2fa383a28bd05bcd682a07a">More...</a><br /></td></tr>
<tr class="separator:ga02bac0aea2fa383a28bd05bcd682a07a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga71d8e53c72b078f1334061ff0aebe8d8"><td class="memItemLeft" align="right" valign="top">divmod_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga71d8e53c72b078f1334061ff0aebe8d8">divmod_u32u32</a> (uint32_t a, uint32_t b)</td></tr>
<tr class="memdesc:ga71d8e53c72b078f1334061ff0aebe8d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two unsigned 32-bit values.  <a href="group__pico__divider.html#ga71d8e53c72b078f1334061ff0aebe8d8">More...</a><br /></td></tr>
<tr class="separator:ga71d8e53c72b078f1334061ff0aebe8d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga053ab24ac7d6145b0229a6c111cb9d1b"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga053ab24ac7d6145b0229a6c111cb9d1b">div_s64s64</a> (int64_t a, int64_t b)</td></tr>
<tr class="memdesc:ga053ab24ac7d6145b0229a6c111cb9d1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two signed 64-bit values.  <a href="group__pico__divider.html#ga053ab24ac7d6145b0229a6c111cb9d1b">More...</a><br /></td></tr>
<tr class="separator:ga053ab24ac7d6145b0229a6c111cb9d1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7f6ec69ce8ef4406923d56a0a6e1d409"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga7f6ec69ce8ef4406923d56a0a6e1d409">divmod_s64s64_rem</a> (int64_t a, int64_t b, int64_t *rem)</td></tr>
<tr class="memdesc:ga7f6ec69ce8ef4406923d56a0a6e1d409"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two signed 64-bit values, with remainder.  <a href="group__pico__divider.html#ga7f6ec69ce8ef4406923d56a0a6e1d409">More...</a><br /></td></tr>
<tr class="separator:ga7f6ec69ce8ef4406923d56a0a6e1d409"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga936872c9df9360e2b32b5d8b2c345913"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga936872c9df9360e2b32b5d8b2c345913">divmod_s64s64</a> (int64_t a, int64_t b)</td></tr>
<tr class="memdesc:ga936872c9df9360e2b32b5d8b2c345913"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two signed 64-bit values.  <a href="group__pico__divider.html#ga936872c9df9360e2b32b5d8b2c345913">More...</a><br /></td></tr>
<tr class="separator:ga936872c9df9360e2b32b5d8b2c345913"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3004f0218e26a762031ec7ed3c369ad1"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga3004f0218e26a762031ec7ed3c369ad1">div_u64u64</a> (uint64_t a, uint64_t b)</td></tr>
<tr class="memdesc:ga3004f0218e26a762031ec7ed3c369ad1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two unsigned 64-bit values.  <a href="group__pico__divider.html#ga3004f0218e26a762031ec7ed3c369ad1">More...</a><br /></td></tr>
<tr class="separator:ga3004f0218e26a762031ec7ed3c369ad1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad4a811e1113b670a7b67df9d7e8c17f8"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#gad4a811e1113b670a7b67df9d7e8c17f8">divmod_u64u64_rem</a> (uint64_t a, uint64_t b, uint64_t *rem)</td></tr>
<tr class="memdesc:gad4a811e1113b670a7b67df9d7e8c17f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two unsigned 64-bit values, with remainder.  <a href="group__pico__divider.html#gad4a811e1113b670a7b67df9d7e8c17f8">More...</a><br /></td></tr>
<tr class="separator:gad4a811e1113b670a7b67df9d7e8c17f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga523fd2399753e2e1c9ebeb3bbc3ad175"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga523fd2399753e2e1c9ebeb3bbc3ad175">divmod_u64u64</a> (uint64_t a, uint64_t b)</td></tr>
<tr class="memdesc:ga523fd2399753e2e1c9ebeb3bbc3ad175"><td class="mdescLeft">&#160;</td><td class="mdescRight">Integer divide of two signed 64-bit values.  <a href="group__pico__divider.html#ga523fd2399753e2e1c9ebeb3bbc3ad175">More...</a><br /></td></tr>
<tr class="separator:ga523fd2399753e2e1c9ebeb3bbc3ad175"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga87e79e05c5490fcef2efb156a721fd6f"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga87e79e05c5490fcef2efb156a721fd6f">div_s32s32_unsafe</a> (int32_t a, int32_t b)</td></tr>
<tr class="memdesc:ga87e79e05c5490fcef2efb156a721fd6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two signed 32-bit values.  <a href="group__pico__divider.html#ga87e79e05c5490fcef2efb156a721fd6f">More...</a><br /></td></tr>
<tr class="separator:ga87e79e05c5490fcef2efb156a721fd6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga18a5bbbeb6c84d0357d803b2c5b25039"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga18a5bbbeb6c84d0357d803b2c5b25039">divmod_s32s32_rem_unsafe</a> (int32_t a, int32_t b, int32_t *rem)</td></tr>
<tr class="memdesc:ga18a5bbbeb6c84d0357d803b2c5b25039"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two signed 32-bit values, with remainder.  <a href="group__pico__divider.html#ga18a5bbbeb6c84d0357d803b2c5b25039">More...</a><br /></td></tr>
<tr class="separator:ga18a5bbbeb6c84d0357d803b2c5b25039"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga712f477f6643e447f5e5890f6e641bef"><td class="memItemLeft" align="right" valign="top">divmod_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga712f477f6643e447f5e5890f6e641bef">divmod_s32s32_unsafe</a> (int32_t a, int32_t b)</td></tr>
<tr class="memdesc:ga712f477f6643e447f5e5890f6e641bef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two unsigned 32-bit values.  <a href="group__pico__divider.html#ga712f477f6643e447f5e5890f6e641bef">More...</a><br /></td></tr>
<tr class="separator:ga712f477f6643e447f5e5890f6e641bef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf3c85d6165a3c2a16b7ecad9cf077a58"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#gaf3c85d6165a3c2a16b7ecad9cf077a58">div_u32u32_unsafe</a> (uint32_t a, uint32_t b)</td></tr>
<tr class="memdesc:gaf3c85d6165a3c2a16b7ecad9cf077a58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two unsigned 32-bit values.  <a href="group__pico__divider.html#gaf3c85d6165a3c2a16b7ecad9cf077a58">More...</a><br /></td></tr>
<tr class="separator:gaf3c85d6165a3c2a16b7ecad9cf077a58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga110fad3fe5af8415e2c4bc4272c38591"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga110fad3fe5af8415e2c4bc4272c38591">divmod_u32u32_rem_unsafe</a> (uint32_t a, uint32_t b, uint32_t *rem)</td></tr>
<tr class="memdesc:ga110fad3fe5af8415e2c4bc4272c38591"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two unsigned 32-bit values, with remainder.  <a href="group__pico__divider.html#ga110fad3fe5af8415e2c4bc4272c38591">More...</a><br /></td></tr>
<tr class="separator:ga110fad3fe5af8415e2c4bc4272c38591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae6565a48f3e347b344aa776f6b220f13"><td class="memItemLeft" align="right" valign="top">divmod_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#gae6565a48f3e347b344aa776f6b220f13">divmod_u32u32_unsafe</a> (uint32_t a, uint32_t b)</td></tr>
<tr class="memdesc:gae6565a48f3e347b344aa776f6b220f13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two unsigned 32-bit values.  <a href="group__pico__divider.html#gae6565a48f3e347b344aa776f6b220f13">More...</a><br /></td></tr>
<tr class="separator:gae6565a48f3e347b344aa776f6b220f13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf7847d0648463a6235c9e7844025d0fb"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#gaf7847d0648463a6235c9e7844025d0fb">div_s64s64_unsafe</a> (int64_t a, int64_t b)</td></tr>
<tr class="memdesc:gaf7847d0648463a6235c9e7844025d0fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two signed 64-bit values.  <a href="group__pico__divider.html#gaf7847d0648463a6235c9e7844025d0fb">More...</a><br /></td></tr>
<tr class="separator:gaf7847d0648463a6235c9e7844025d0fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacfbc03721cfa18f7f1865d0cb17a62f9"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#gacfbc03721cfa18f7f1865d0cb17a62f9">divmod_s64s64_rem_unsafe</a> (int64_t a, int64_t b, int64_t *rem)</td></tr>
<tr class="memdesc:gacfbc03721cfa18f7f1865d0cb17a62f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two signed 64-bit values, with remainder.  <a href="group__pico__divider.html#gacfbc03721cfa18f7f1865d0cb17a62f9">More...</a><br /></td></tr>
<tr class="separator:gacfbc03721cfa18f7f1865d0cb17a62f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga47233b8d21888b733c5f271fdf290a33"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga47233b8d21888b733c5f271fdf290a33">divmod_s64s64_unsafe</a> (int64_t a, int64_t b)</td></tr>
<tr class="memdesc:ga47233b8d21888b733c5f271fdf290a33"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two signed 64-bit values.  <a href="group__pico__divider.html#ga47233b8d21888b733c5f271fdf290a33">More...</a><br /></td></tr>
<tr class="separator:ga47233b8d21888b733c5f271fdf290a33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5ef2b5c7b1e6f12573ec35cbc822ab5a"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga5ef2b5c7b1e6f12573ec35cbc822ab5a">div_u64u64_unsafe</a> (uint64_t a, uint64_t b)</td></tr>
<tr class="memdesc:ga5ef2b5c7b1e6f12573ec35cbc822ab5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two unsigned 64-bit values.  <a href="group__pico__divider.html#ga5ef2b5c7b1e6f12573ec35cbc822ab5a">More...</a><br /></td></tr>
<tr class="separator:ga5ef2b5c7b1e6f12573ec35cbc822ab5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9f37bfee18ba829fe4249b309dcb4fad"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga9f37bfee18ba829fe4249b309dcb4fad">divmod_u64u64_rem_unsafe</a> (uint64_t a, uint64_t b, uint64_t *rem)</td></tr>
<tr class="memdesc:ga9f37bfee18ba829fe4249b309dcb4fad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two unsigned 64-bit values, with remainder.  <a href="group__pico__divider.html#ga9f37bfee18ba829fe4249b309dcb4fad">More...</a><br /></td></tr>
<tr class="separator:ga9f37bfee18ba829fe4249b309dcb4fad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga18f537358cd342a32fa6781e7ca4b475"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__divider.html#ga18f537358cd342a32fa6781e7ca4b475">divmod_u64u64_unsafe</a> (uint64_t a, uint64_t b)</td></tr>
<tr class="memdesc:ga18f537358cd342a32fa6781e7ca4b475"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsafe integer divide of two signed 64-bit values.  <a href="group__pico__divider.html#ga18f537358cd342a32fa6781e7ca4b475">More...</a><br /></td></tr>
<tr class="separator:ga18f537358cd342a32fa6781e7ca4b475"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p >Optimized 32 and 64 bit division functions accelerated by the RP2040 hardware divider. </p>
<p >Additionally provides integration with the C <code>/</code> and <code>%</code> operators </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga60b86237e096a13f871015a28dceb88a" name="ga60b86237e096a13f871015a28dceb88a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga60b86237e096a13f871015a28dceb88a">&#9670;&nbsp;</a></span>div_s32s32()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t div_s32s32 </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two signed 32-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient </dd></dl>

</div>
</div>
<a id="ga87e79e05c5490fcef2efb156a721fd6f" name="ga87e79e05c5490fcef2efb156a721fd6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga87e79e05c5490fcef2efb156a721fd6f">&#9670;&nbsp;</a></span>div_s32s32_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t div_s32s32_unsafe </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two signed 32-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="ga053ab24ac7d6145b0229a6c111cb9d1b" name="ga053ab24ac7d6145b0229a6c111cb9d1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga053ab24ac7d6145b0229a6c111cb9d1b">&#9670;&nbsp;</a></span>div_s64s64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t div_s64s64 </td>
          <td>(</td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two signed 64-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient </dd></dl>

</div>
</div>
<a id="gaf7847d0648463a6235c9e7844025d0fb" name="gaf7847d0648463a6235c9e7844025d0fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf7847d0648463a6235c9e7844025d0fb">&#9670;&nbsp;</a></span>div_s64s64_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t div_s64s64_unsafe </td>
          <td>(</td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two signed 64-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="ga9f9526e8653805bf2fe737afd4e490da" name="ga9f9526e8653805bf2fe737afd4e490da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9f9526e8653805bf2fe737afd4e490da">&#9670;&nbsp;</a></span>div_u32u32()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t div_u32u32 </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two unsigned 32-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient </dd></dl>

</div>
</div>
<a id="gaf3c85d6165a3c2a16b7ecad9cf077a58" name="gaf3c85d6165a3c2a16b7ecad9cf077a58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf3c85d6165a3c2a16b7ecad9cf077a58">&#9670;&nbsp;</a></span>div_u32u32_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t div_u32u32_unsafe </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two unsigned 32-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="ga3004f0218e26a762031ec7ed3c369ad1" name="ga3004f0218e26a762031ec7ed3c369ad1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3004f0218e26a762031ec7ed3c369ad1">&#9670;&nbsp;</a></span>div_u64u64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t div_u64u64 </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two unsigned 64-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient </dd></dl>

</div>
</div>
<a id="ga5ef2b5c7b1e6f12573ec35cbc822ab5a" name="ga5ef2b5c7b1e6f12573ec35cbc822ab5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5ef2b5c7b1e6f12573ec35cbc822ab5a">&#9670;&nbsp;</a></span>div_u64u64_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t div_u64u64_unsafe </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two unsigned 64-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="gace9d9d5ff4290c52bc4d5e07f6f7e15a" name="gace9d9d5ff4290c52bc4d5e07f6f7e15a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gace9d9d5ff4290c52bc4d5e07f6f7e15a">&#9670;&nbsp;</a></span>divmod_s32s32()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">divmod_result_t divmod_s32s32 </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two signed 32-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient in low word/r0, remainder in high word/r1 </dd></dl>

</div>
</div>
<a id="gaae6ff276cc2275c0734600b981a5d677" name="gaae6ff276cc2275c0734600b981a5d677"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaae6ff276cc2275c0734600b981a5d677">&#9670;&nbsp;</a></span>divmod_s32s32_rem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int32_t divmod_s32s32_rem </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t *&#160;</td>
          <td class="paramname"><em>rem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Integer divide of two signed 32-bit values, with remainder. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">b</td><td>Divisor </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rem</td><td>The remainder of dividend/divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient result of dividend/divisor </dd></dl>

</div>
</div>
<a id="ga18a5bbbeb6c84d0357d803b2c5b25039" name="ga18a5bbbeb6c84d0357d803b2c5b25039"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga18a5bbbeb6c84d0357d803b2c5b25039">&#9670;&nbsp;</a></span>divmod_s32s32_rem_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t divmod_s32s32_rem_unsafe </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t *&#160;</td>
          <td class="paramname"><em>rem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two signed 32-bit values, with remainder. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">b</td><td>Divisor </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rem</td><td>The remainder of dividend/divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient result of dividend/divisor</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="ga712f477f6643e447f5e5890f6e641bef" name="ga712f477f6643e447f5e5890f6e641bef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga712f477f6643e447f5e5890f6e641bef">&#9670;&nbsp;</a></span>divmod_s32s32_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">divmod_result_t divmod_s32s32_unsafe </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two unsigned 32-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient in low word/r0, remainder in high word/r1</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="ga936872c9df9360e2b32b5d8b2c345913" name="ga936872c9df9360e2b32b5d8b2c345913"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga936872c9df9360e2b32b5d8b2c345913">&#9670;&nbsp;</a></span>divmod_s64s64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t divmod_s64s64 </td>
          <td>(</td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two signed 64-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient in result (r0,r1), remainder in regs (r2, r3) </dd></dl>

</div>
</div>
<a id="ga7f6ec69ce8ef4406923d56a0a6e1d409" name="ga7f6ec69ce8ef4406923d56a0a6e1d409"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7f6ec69ce8ef4406923d56a0a6e1d409">&#9670;&nbsp;</a></span>divmod_s64s64_rem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t divmod_s64s64_rem </td>
          <td>(</td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t *&#160;</td>
          <td class="paramname"><em>rem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two signed 64-bit values, with remainder. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">b</td><td>Divisor </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rem</td><td>The remainder of dividend/divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient result of dividend/divisor </dd></dl>

</div>
</div>
<a id="gacfbc03721cfa18f7f1865d0cb17a62f9" name="gacfbc03721cfa18f7f1865d0cb17a62f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacfbc03721cfa18f7f1865d0cb17a62f9">&#9670;&nbsp;</a></span>divmod_s64s64_rem_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t divmod_s64s64_rem_unsafe </td>
          <td>(</td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t *&#160;</td>
          <td class="paramname"><em>rem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two signed 64-bit values, with remainder. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">b</td><td>Divisor </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rem</td><td>The remainder of dividend/divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient result of dividend/divisor</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="ga47233b8d21888b733c5f271fdf290a33" name="ga47233b8d21888b733c5f271fdf290a33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47233b8d21888b733c5f271fdf290a33">&#9670;&nbsp;</a></span>divmod_s64s64_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t divmod_s64s64_unsafe </td>
          <td>(</td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two signed 64-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient in result (r0,r1), remainder in regs (r2, r3)</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="ga71d8e53c72b078f1334061ff0aebe8d8" name="ga71d8e53c72b078f1334061ff0aebe8d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga71d8e53c72b078f1334061ff0aebe8d8">&#9670;&nbsp;</a></span>divmod_u32u32()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">divmod_result_t divmod_u32u32 </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two unsigned 32-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient in low word/r0, remainder in high word/r1 </dd></dl>

</div>
</div>
<a id="ga02bac0aea2fa383a28bd05bcd682a07a" name="ga02bac0aea2fa383a28bd05bcd682a07a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga02bac0aea2fa383a28bd05bcd682a07a">&#9670;&nbsp;</a></span>divmod_u32u32_rem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t divmod_u32u32_rem </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>rem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Integer divide of two unsigned 32-bit values, with remainder. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">b</td><td>Divisor </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rem</td><td>The remainder of dividend/divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient result of dividend/divisor </dd></dl>

</div>
</div>
<a id="ga110fad3fe5af8415e2c4bc4272c38591" name="ga110fad3fe5af8415e2c4bc4272c38591"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga110fad3fe5af8415e2c4bc4272c38591">&#9670;&nbsp;</a></span>divmod_u32u32_rem_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t divmod_u32u32_rem_unsafe </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>rem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two unsigned 32-bit values, with remainder. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">b</td><td>Divisor </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rem</td><td>The remainder of dividend/divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient result of dividend/divisor</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="gae6565a48f3e347b344aa776f6b220f13" name="gae6565a48f3e347b344aa776f6b220f13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae6565a48f3e347b344aa776f6b220f13">&#9670;&nbsp;</a></span>divmod_u32u32_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">divmod_result_t divmod_u32u32_unsafe </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two unsigned 32-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient in low word/r0, remainder in high word/r1</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="ga523fd2399753e2e1c9ebeb3bbc3ad175" name="ga523fd2399753e2e1c9ebeb3bbc3ad175"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga523fd2399753e2e1c9ebeb3bbc3ad175">&#9670;&nbsp;</a></span>divmod_u64u64()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t divmod_u64u64 </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two signed 64-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient in result (r0,r1), remainder in regs (r2, r3) </dd></dl>

</div>
</div>
<a id="gad4a811e1113b670a7b67df9d7e8c17f8" name="gad4a811e1113b670a7b67df9d7e8c17f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad4a811e1113b670a7b67df9d7e8c17f8">&#9670;&nbsp;</a></span>divmod_u64u64_rem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t divmod_u64u64_rem </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t *&#160;</td>
          <td class="paramname"><em>rem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Integer divide of two unsigned 64-bit values, with remainder. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">b</td><td>Divisor </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rem</td><td>The remainder of dividend/divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient result of dividend/divisor </dd></dl>

</div>
</div>
<a id="ga9f37bfee18ba829fe4249b309dcb4fad" name="ga9f37bfee18ba829fe4249b309dcb4fad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9f37bfee18ba829fe4249b309dcb4fad">&#9670;&nbsp;</a></span>divmod_u64u64_rem_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t divmod_u64u64_rem_unsafe </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t *&#160;</td>
          <td class="paramname"><em>rem</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two unsigned 64-bit values, with remainder. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramdir"></td><td class="paramname">b</td><td>Divisor </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">rem</td><td>The remainder of dividend/divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Quotient result of dividend/divisor</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
<a id="ga18f537358cd342a32fa6781e7ca4b475" name="ga18f537358cd342a32fa6781e7ca4b475"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga18f537358cd342a32fa6781e7ca4b475">&#9670;&nbsp;</a></span>divmod_u64u64_unsafe()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t divmod_u64u64_unsafe </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unsafe integer divide of two signed 64-bit values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>Dividend </td></tr>
    <tr><td class="paramname">b</td><td>Divisor </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>quotient in result (r0,r1), remainder in regs (r2, r3)</dd></dl>
<p>Do not use in interrupts </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>